package cn.drh.charging.order.feign;


import cn.drh.charging.common.pojo.JsonResult;
import cn.drh.charging.common.pojo.vo.UserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName UserClient
 * @Description TODO
 * @Author renhong~Deng
 * @Date 2025/5/27 11:12
 * @Version 1.0
 *
 * 订单用来访问用户服务的客户端
 */

//userService 要和nacos中配置的serviceName一致
@FeignClient(value = "userService")
public interface UserClient {

    @GetMapping("/user/info/{userId}")
    JsonResult<UserInfoVO> getUserCarInfo(@PathVariable("userId") Integer userId);
}
